package com.xingxin.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

/**
 * <p>
 * 属性表
 * </p>
 *
 * @author mrLiu
 * @since 2021-01-08
 */
@TableName("sp_attribute")
public class Attribute implements Serializable {

    private static final long serialVersionUID=1L;

    /**
     * 主键id
     */
    @TableId(value = "attr_id", type = IdType.AUTO)
    private Integer attrId;

    /**
     * 属性名称
     */
    private String attrName;

    /**
     * 外键，类型id
     */
    private Integer catId;

    /**
     * only:输入框(唯一)  many:后台下拉列表/前台单选框
     */
    private String attrSel;

    /**
     * manual:手工录入  list:从列表选择
     */
    private String attrWrite;

    /**
     * 可选值列表信息,例如颜色：白色,红色,绿色,多个可选值通过逗号分隔
     */
    private String attrVals;

    /**
     * 删除时间标志
     */
    private Integer deleteTime;


    public Integer getAttrId() {
        return attrId;
    }

    public void setAttrId(Integer attrId) {
        this.attrId = attrId;
    }

    public String getAttrName() {
        return attrName;
    }

    public void setAttrName(String attrName) {
        this.attrName = attrName;
    }

    public Integer getCatId() {
        return catId;
    }

    public void setCatId(Integer catId) {
        this.catId = catId;
    }

    public String getAttrSel() {
        return attrSel;
    }

    public void setAttrSel(String attrSel) {
        this.attrSel = attrSel;
    }

    public String getAttrWrite() {
        return attrWrite;
    }

    public void setAttrWrite(String attrWrite) {
        this.attrWrite = attrWrite;
    }

    public String getAttrVals() {
        return attrVals;
    }

    public void setAttrVals(String attrVals) {
        this.attrVals = attrVals;
    }

    public Integer getDeleteTime() {
        return deleteTime;
    }

    public void setDeleteTime(Integer deleteTime) {
        this.deleteTime = deleteTime;
    }

    @Override
    public String toString() {
        return "Attribute{" +
        "attrId=" + attrId +
        ", attrName=" + attrName +
        ", catId=" + catId +
        ", attrSel=" + attrSel +
        ", attrWrite=" + attrWrite +
        ", attrVals=" + attrVals +
        ", deleteTime=" + deleteTime +
        "}";
    }
}
